﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<#include "/pages/include/include.ftl" />
<script type="text/javascript">
	$(function(){
	
	});
</script>
</head>
<style>
.l-table-edit {width:100%;margin:0px auto;}

.l-table-edit .l-table-edit-td{ padding:4px;}

    
.l-table-edit .l-table-edit-th {
	font-weight: bold;
	height: 35px;
	line-height: 35px;
	padding-right: 10px;
	width: 35px;
}  
</style>
<body>
<form id="addform" method="post">
        <table cellpadding="0" cellspacing="0" class="l-table-edit">
            <tr>
                <td align="right" class="l-table-edit-th">名称:</td>
                <td align="left" class="l-table-edit-td" >
                	<input type="text" class="inputText required cnendigit" <#if link?exists>value="${link.title?if_exists}"</#if> name="link.title" id="title" ltype="text" style="width:155px;"/>
                </td>
            </tr>
            <tr>
                <td align="right" class="l-table-edit-th" valign="top">链接:</td>
                <td align="left" class="l-table-edit-td">
                	<input type="text" class="inputText required endigit" <#if link?exists>value="${link.url?if_exists}"</#if> name="link.url" id="url" ltype="text" style="width:300px;"/>
                </td>
            </tr>   
            <tr>
                <td align="right" class="l-table-edit-th" valign="top">类型:</td>
                <td align="left" class="l-table-edit-td">
                	<#if link?exists>
                		<input type="radio" class="inputCheckbox" value="1" name="link.typeStr" <#if link.type?string=='IN'>checked="checked"</#if> id="in" ltype="text"/>内部链接
                		<input type="radio" class="inputCheckbox" value="2" name="link.typeStr" <#if link.type?string=='OUT'>checked="checked"</#if> id="out" ltype="text"/>外部链接
                	<#else>
	                	<input type="radio" class="inputCheckbox" value="1" name="link.typeStr" checked="checked" id="in" ltype="text"/>内部链接
	                	<input type="radio" class="inputCheckbox" value="2" name="link.typeStr" id="out" ltype="text"/>外部链接
                	</#if>
                </td>
            </tr> 
        </table>
		<input type="hidden" name="link.id" <#if link?exists>value="${link.id?if_exists}"</#if>/>
 <br />
</form>

</body>

</html>
